﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using System.ComponentModel;

namespace TravelWeb.Models
{
    [Bind(Exclude = "TransportationID")]
    public class Transportation
    {
        [ScaffoldColumn(false)]
        public int TransportationID { get; set; }
        [Required(ErrorMessage = "Vehicle Name is required")]
        [DisplayName("Vehicle Name")]
        [StringLength(160)]
        public String TransportationName { get; set; }
        [Required(ErrorMessage = "Type is required")]
        [DisplayName("Type")]
        [StringLength(160)]
        public String TransportationType { get; set; }
        [DisplayName("Total seats")]
        public int numOfSeat { get; set; }
        [DisplayName("Total seats ordered")]
        public int numOfSeatAvailable { get; set; }
        [ScaffoldColumn(false)]
        public String Status { get; set; }

        public List<Transportation> Transportations { get; set; }
    }
}